package com.mikao.dao;

import com.mikao.entity.OfferPrice;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface OfferPriceDao extends JpaRepository<OfferPrice, Long>, JpaSpecificationExecutor {

    /**
     * 根据类型进行查询平台报价
     *
     * @param type 类型
     * @return list
     */
    List<OfferPrice> findAllByTypeOrderByCreateTimeDesc(Integer type);
}
